package exp1;

public class Fibonacci2 {

	 private static int getFibonacci(int i) {
	  if (i == 1 || i == 2)
	  return 1;
	  else
	  return getFibonacci(i - 1) + getFibonacci(i - 2);
	  }

   public static void main(String[] args) {
	    for (int j = 1; j <= 20; j++) {
	   System.out.print(getFibonacci(j) + "\t");
	   if (j % 5 == 0) 
	    System.out.println();}}}
